import fetch from '@/config/fetch';

export const selectHomeInfo=()=>fetch('/index/HomeInfo/selectHomeInfo',null);

export const selectEssay=(id:string)=>fetch('/index/Essay/selectEssay',{id:id},"POST");

export const addMessage=(text:string)=>fetch('/index/HomeInfo/addMessage',{text:text},"POST");